How to Change the Password for a User in Linux Server
As a Linux system administrator (administrator or root) you can change the password for any users on your server. Please check the guide to change a password on behalf of a user.
1. Log in to your Linux Server
To log in to the Linux server, please refer to How to connect to a Linux Server using XShell or PuTTy.
If the system is Ubuntu OS, please switch to root user with the command sudo -i
.
2. Change the password
Then, type passwd username to change a password for a specific user. For example, run passwd root
or passwd administrator
to change the password of user "root" or "administrator". Or type passwd
to change the password of the current user. The system will prompt you to enter a password twice.